package com.ddx.common.enums;


public enum Channel {

    QUDAO3("qudao3","dsp投放"),
    QUDAO4("qudao4","链财经");

    private String code;
    private String description;

    Channel(String code, String description ) {
        this.code = code;
        this.description  = description ;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public static Channel getChannel(String code) {
        for (Channel t : Channel.values()) {
            if (code.equals(t.getCode())) {
                return t;
            }
        }
        return null;
    }

    
    
}
